<?php
#	post.php
# All the funky object orentation goes here.


/* MySQL Data grabby stuff goes here. */

include 'mysql.php';
class blog_entry {
	public function post () {                                         
	$result = mysql_query("SELECT postTitle, PostDate, PostAuthor, PostContent FROM posts ORDER BY PostDate DESC;");
		if (mysql_num_rows($result)) {
			while ($row = mysql_fetch_assoc($result)) {
			extract($row, EXTR_PREFIX_ALL, 'fb');
			echo "<h3>$fb_postTitle</h3>
			<p><b>Posted by $fb_PostAuthor, $fb_PostDate seconds after the Unix Enoch.</b></p>
			<p>$fb_PostContent</p>";
			}
		}
	}
}
post();
?>